home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1993 July / InfoMagic USENET CD-ROM July 1993.ISO / sources / misc / volume17 / calentool / part13 < prev    next >
Encoding:
Internet Message Format  |  1991-04-06  |  54.5 KB

  1. From: billr@saab.CNA.TEK.COM (Bill Randle)
  2. Newsgroups: comp.sources.misc
  3. Subject: v17i094:  calentool - day/week/month/year-at-a-glance SunView tool, Part13/23
  4. Message-ID: <1991Apr6.024030.17282@sparky.IMD.Sterling.COM>
  5. Date: 6 Apr 91 02:40:30 GMT
  6. Approved: kent@sparky.imd.sterling.com
  7. X-Checksum-Snefru: f2110200 555401b7 79852ce8 8074b9fd
  8.  
  9. Submitted-by: Bill Randle <billr@saab.CNA.TEK.COM>
  10. Posting-number: Volume 17, Issue 94
  11. Archive-name: calentool/part13
  12.  
  13. #! /bin/sh
  14. # This is a shell archive.  Remove anything before this line, then unpack
  15. # it by saving it into a file and typing "sh file".  To overwrite existing
  16. # files, type "sh file -c".  You can also feed this as standard input via
  17. # unshar, or by typing "sh <file", e.g..  If this archive is complete, you
  18. # will see the following message at the end:
  19. #        "End of archive 13 (of 23)."
  20. # Contents:  dates/lives6 event.c wpaint.c
  21. # Wrapped by billr@saab on Thu Mar 28 08:38:24 1991
  22. PATH=/bin:/usr/bin:/usr/ucb ; export PATH
  23. if test -f 'dates/lives6' -a "${1}" != "-c" ; then 
  24.   echo shar: Will not clobber existing file \"'dates/lives6'\"
  25. else
  26. echo shar: Extracting \"'dates/lives6'\" \(32402 characters\)
  27. sed "s/^X//" >'dates/lives6' <<'END_OF_FILE'
  28. X# CalenTool V2.2 - nflag=1 range=11,12 - DO NOT REMOVE THIS LINE
  29. X# $Header: lives6,v 1.1 91/03/07 16:19:01 billr Exp $
  30. X# (Nov-Dec)
  31. X# Famous people's births, deaths and marriages file for calentool
  32. X# extracted from ProLine's today file and Today in History provided
  33. X# by Robert Heckendorn at Hewlett-Packard in Fort Collins, Colorado.
  34. X# converted to calentool format by lwv27%cas.BITNET@CUNYVM.CUNY.Edu.
  35. X#
  36. X# There may be duplicates where I don't have a definitive correct
  37. X# date.  billr@saab.cna.tek.com
  38. X#
  39. X** 11 01 99 99 00 Fernando Valenzuela, baseball pitcher (1960)
  40. X** 11 01 99 99 00 Gary Player, golfer and Longwood Florida resident (1935)
  41. X** 11 01 99 99 00 James J. Kilpatrick, newspaper columnist (1920)
  42. X** 11 01 99 99 00 Jeannie Berlin, actress (1949)
  43. X** 11 01 99 99 00 Larry Flynt, magazine publisher (1942)
  44. X** 11 01 99 99 00 Rick Allen, rock musician (1963)
  45. X** 11 01 99 99 00 Robert Foxworth, actor (1941)
  46. X** 11 02 99 99 00 Alfre Woodard, actress (1953)
  47. X** 11 02 99 99 00 Burt Lancaster, actor (1913)
  48. X** 11 02 99 99 00 Daniel Boone born near Reading, PA (1734)
  49. X** 11 02 99 99 00 Harlow Shapley, US astronomer (1885)
  50. X** 11 02 99 99 00 James K. Polk, 11th President (1845-1849) (1795)
  51. X** 11 02 99 99 00 Keith Emerson born (1944)
  52. X** 11 02 99 99 00 Patrick J. Buchanan, political commentator (1938)
  53. X** 11 02 99 99 00 Ray Walston, actor (1914)
  54. X** 11 02 99 99 00 Shere Hite, author (1942)
  55. X** 11 02 99 99 00 Warren G. Harding, 29th President (1921-1923) (1865)
  56. X** 11 03 99 99 00 James Reston, journalist (1909)
  57. X** 11 03 99 99 00 James Taylor & Carly Simon married (Manhattan, 1972)
  58. X** 11 03 99 99 00 John Montague, 4th Earl of Sandwich, inventor of same. (1718)
  59. X** 11 03 99 99 00 Mary Martin, stage actress of Peter Pan and South Pacific, dies (1990)
  60. X** 11 03 99 99 00 Michael Dukakis (1933)
  61. X** 11 04 99 99 00 Art Carney, actor, is born (1918)
  62. X** 11 04 99 99 00 Cameron Mitchell, actor (1918)
  63. X** 11 04 99 99 00 Jakob Ludwig Felix Mendelssohn-Bartholdy (Felix Mendelssohn), the composer, dies in Leipzig (1847)
  64. X** 11 04 99 99 00 King William III of Orange born (1650)
  65. X** 11 04 99 99 00 Loretta Swit, actress, is born (1937)
  66. X** 11 04 99 99 00 Markie Post, actress (1950)
  67. X** 11 04 99 99 00 Walter Cronkite, CBS newsman, is born (1916)
  68. X** 11 04 99 99 00 Will Rogers, humorist, born (1879)
  69. X** 11 05 99 99 00 Andrea McArdle, actress (1963)
  70. X** 11 05 99 99 00 Art Garfunkel, singer (1941)
  71. X** 11 05 99 99 00 Bryan Adams, singer (1959)
  72. X** 11 05 99 99 00 Eugene Victor Debs, American labor organizer and socialist, is born (1855)
  73. X** 11 05 99 99 00 Ida Tarbell, muckraker (Standard Oil was VERY unhappy) (1857)
  74. X** 11 05 99 99 00 Ike Turner, singer-songwriter (1931)
  75. X** 11 05 99 99 00 Paul Simon, singer and songwriter, is born (1942)
  76. X** 11 05 99 99 00 Roy Rogers, actor and singer, is born in Cincinnati, OH (1912)
  77. X** 11 05 99 99 00 Sam Shepard, actor-playwright (1943)
  78. X** 11 05 99 99 00 Tatum O'Neal, actress (1963)
  79. X** 11 05 99 99 00 Vladimir Horowitz, pianist, dies (1989)
  80. X** 11 06 99 99 00 Aloys Senefelder, inventor of lithography. (1771)
  81. X** 11 06 99 99 00 Charles Henry Dow, founded Dow Jones & Co. (1851)
  82. X** 11 06 99 99 00 Dr. James Naismith, Canadian inventor of Basketball, is born (1861)
  83. X** 11 06 99 99 00 Edsel Ford is born (1893)
  84. X** 11 06 99 99 00 Glenn Frey, rock singer (1948)
  85. X** 11 06 99 99 00 John Philip Sousa, band leader and composer, is born in Washington D.C. (1854)
  86. X** 11 06 99 99 00 Lance Kerwin, actor (1960)
  87. X** 11 06 99 99 00 Maria Shriver, TV newscaster (1955)
  88. X** 11 06 99 99 00 Mike Nichols, movie and stage director (1931)
  89. X** 11 06 99 99 00 Peter Ilich Tchaikovsky, Russian composer, dies of Cholera after knowingly drinking unboiled water (1893)
  90. X** 11 06 99 99 00 Sally Field, actress, is born (1946)
  91. X** 11 06 99 99 00 Sir John Falstaff, English knight, dies (1406)
  92. X** 11 07 99 99 00 Al Hirt, jazz musician (1922)
  93. X** 11 07 99 99 00 Albert Camus born in Mondavi, Algeria (1913)
  94. X** 11 07 99 99 00 Billy Graham, evangelist, is born (1913)
  95. X** 11 07 99 99 00 Eleanor Roosevelt dies (1962)
  96. X** 11 07 99 99 00 Elijah P Lovejoy, Abolitionist newspaperman, murdered by mob (1837)
  97. X** 11 07 99 99 00 Joni Mitchell (Roberta Joan Anderson) born in Alberta, Canada (1943)
  98. X** 11 07 99 99 00 Madame Marie Curie, discovered radium. (1867)
  99. X** 11 07 99 99 00 Mary Travers, singer (1937)
  100. X** 11 08 99 99 00 Bobby Bowden, Florida State University football coach (1929)
  101. X** 11 08 99 99 00 Doc Holliday, notorious dentist of the Old West, dies (1887)
  102. X** 11 08 99 99 00 Edmond Halley, astronomer, 1st to calculate a comet's orbit. (1656)
  103. X** 11 08 99 99 00 Katherine Hepburn, actress, born (1909)
  104. X** 11 08 99 99 00 Mary Hart, television personality, is born (1951)
  105. X** 11 08 99 99 00 Morley Safer, newsman of TV program 60 Minutes, is born (1931)
  106. X** 11 08 99 99 00 Patti Page, singer, born (1927)
  107. X** 11 09 99 99 00 Bob Graham, former governor of Florida (1936)
  108. X** 11 09 99 99 00 Carl Sagan, astronomer, author and popularist of the sciences, is born (1934)
  109. X** 11 09 99 99 00 Charles de Gaulle, French military and political leader, dies (1970)
  110. X** 11 09 99 99 00 Charlie Jones, sportscaster (1930)
  111. X** 11 09 99 99 00 Dylan Thomas, Welsh romantic poet, dies in New York (1953)
  112. X** 11 09 99 99 00 Ed Wynn, actor, is born (1886)
  113. X** 11 09 99 99 00 Lou Ferrigno, actor (1952)
  114. X** 11 09 99 99 00 Spiro T. Agnew, former Vice President (1918)
  115. X** 11 09 99 99 00 Whitey Herzog, former baseball manager (1931)
  116. X** 11 10 99 99 00 Ann Reinking, actress-dancer (1949)
  117. X** 11 10 99 99 00 Bob Marshall, Alaskan explorer, dies (1939)
  118. X** 11 10 99 99 00 Captain Wirz, commandant of Andersonville Prison hanged (1865)
  119. X** 11 10 99 99 00 Cyrus West Field, financier known for the success of the 1st transatlantic cable (1819)
  120. X** 11 10 99 99 00 Francois Couperin, composer (1668)
  121. X** 11 10 99 99 00 Greg Lake born (Bournemouth, England, 1948)
  122. X** 11 10 99 99 00 John Knudsen Northrop, aircraft designer. (1895)
  123. X** 11 10 99 99 00 Martin Luther, church reformer, born in Eisleben, Germany (1483)
  124. X** 11 10 99 99 00 Richard Burton, the actor, is born (1925)
  125. X** 11 10 99 99 00 Roy Scheider, actor (1935)
  126. X** 11 10 99 99 00 Soviet President Leonid Brezhnev dies at age 75 (1982)
  127. X** 11 10 99 99 00 William Hogarth, artist, is born (1697)
  128. X** 11 11 99 99 00 Alger Hiss, former State Department official (1904)
  129. X** 11 11 99 99 00 Daniel Ortega, former president of Nicaragua (1945)
  130. X** 11 11 99 99 00 Demi Moore, actress (1962)
  131. X** 11 11 99 99 00 Fyodor Dostoyevsky, author, "Crime and Punishment" (1821)
  132. X** 11 11 99 99 00 General George Patton, World War II tank strategist, is born in San Gabriel, California (1885)
  133. X** 11 11 99 99 00 Jonathan Winters, comedian (1925)
  134. X** 11 11 99 99 00 Kurt Vonnegut, Jr, author, born in Indianapolis (1922)
  135. X** 11 11 99 99 00 Nat Turner, slave who lead a slave revolt, hanged (1831)
  136. X** 11 11 99 99 00 Typhoid Mary dies. She was under permanent detention for refusing to give up serving food and would even use false names to continue to do so. (1938)
  137. X** 11 11 99 99 00 William Proxmire, former Senator (1915)
  138. X** 11 12 99 99 00 Auguste Rodin, French sculptor, is born (1840)
  139. X** 11 12 99 99 00 Charles Manson, crazed murderer, born (1934)
  140. X** 11 12 99 99 00 Elizabeth Stanton, early leader of women's rights movement. (1815)
  141. X** 11 12 99 99 00 Grace Kelly, actress and monagesque princess, is born (1929)
  142. X** 11 12 99 99 00 Harry Blackmun, Supreme Court Justice (1908)
  143. X** 11 12 99 99 00 Kim Hunter, actress (1922)
  144. X** 11 12 99 99 00 Nadia Comaneci, former Romanian gymnast (1961)
  145. X** 11 12 99 99 00 Neil Young, musician-songwriter, born in Toronto (1945)
  146. X** 11 12 99 99 00 Percival Lowell, astronomer, dies at Flagstaff Arizona (1916)
  147. X** 11 12 99 99 00 Sun Yat-sen, father of modern China (ROC and PRC) (1866)
  148. X** 11 13 99 99 00 Dack Rambo, actor (1941)
  149. X** 11 13 99 99 00 Garry Marshall, producer-director (1934)
  150. X** 11 13 99 99 00 Gioacchino Rossini, opera composer, dies (1868)
  151. X** 11 13 99 99 00 Justice Louis Brandeis (1856)
  152. X** 11 13 99 99 00 Karen Silkwood dies under unusual circumstances (1974)
  153. X** 11 13 99 99 00 Madeleine Sherwood, actress (1922)
  154. X** 11 13 99 99 00 Richard Mulligan, actor (1932)
  155. X** 11 13 99 99 00 Robert Louis Stevenson, author of Treasure Island and Dr Jekyll and Mr. Hyde, born in Edinburgh (1850)
  156. X** 11 13 99 99 00 St. Augustine of Hippo born in Numidia, Algeria (354)
  157. X** 11 13 99 99 00 Whoopi Goldberg, actress-comedian (1949)
  158. X** 11 14 99 99 00 Aaron Copland, American composer (Billy the Kid, Appalachian Spring) (1900)
  159. X** 11 14 99 99 00 Brian Keith, actor (1921)
  160. X** 11 14 99 99 00 Claude Monet, impressionist (1840)
  161. X** 11 14 99 99 00 Don Stewart, actor (1935)
  162. X** 11 14 99 99 00 Gottfried Wilhelm Leibnitz, German mathematician and philosopher, died (1716)
  163. X** 11 14 99 99 00 HRH Charles, Prince of Wales, first son of Queen Elizabeth II, is born (1948)
  164. X** 11 14 99 99 00 Henri Dutrochet, discovered & named process of osmosis (1776)
  165. X** 11 14 99 99 00 Jordan's King Hussein (1935)
  166. X** 11 14 99 99 00 McLean Stevenson, actor (1929)
  167. X** 11 14 99 99 00 Robert Fulton, built 1st commercial steamboat (1765)
  168. X** 11 15 99 99 00 Edward Asner, actor (1929)
  169. X** 11 15 99 99 00 Erwin Rommel, German tactician, general known as "The Desert Fox", is born (1891)
  170. X** 11 15 99 99 00 Georgia O'Keeffe, Southwestern artist, was born (1887)
  171. X** 11 15 99 99 00 Howard H. Baker, former White House chief of staff (1925)
  172. X** 11 15 99 99 00 Joanna Barnes, actress (1934)
  173. X** 11 15 99 99 00 Johannes Kepler, the astronomer, dies (1630)
  174. X** 11 15 99 99 00 Mark Acres, Orlando Magic forward-center (1962)
  175. X** 11 15 99 99 00 Petula Clark, singer (1932)
  176. X** 11 15 99 99 00 William Cowper, poet, is born (1731)
  177. X** 11 15 99 99 00 Willim Herschel born (1738)
  178. X** 11 16 99 99 00 Burgess Meredith, actor (1908)
  179. X** 11 16 99 99 00 Clark Gable, film actor, dies (1960)
  180. X** 11 16 99 99 00 Dwight Gooden, baseball player (1964)
  181. X** 11 16 99 99 00 Elizabeth Drew, journalist (1935)
  182. X** 11 16 99 99 00 Emperor of Rome, Tiberius born (42 BC)
  183. X** 11 16 99 99 00 George Gallop, pollster (1901)
  184. X** 11 16 99 99 00 Joanna Pettet, actress (1944)
  185. X** 11 16 99 99 00 Lisa Bonet, actress (1967)
  186. X** 11 16 99 99 00 Lucas von Hildebrandt, architect, dies (1745)
  187. X** 11 16 99 99 00 William Handy, established the popularity of the blues in band music (1873)
  188. X** 11 17 99 99 00 "Bloody" Mary Tudor, Queen of England dies (1558)
  189. X** 11 17 99 99 00 August Mobius, the mathematician, was born (1790)
  190. X** 11 17 99 99 00 Bob Mathias, Olympian-turned-politician (1930)
  191. X** 11 17 99 99 00 Danny DeVito, actor (1944)
  192. X** 11 17 99 99 00 Gordon Lightfoot, singer, is born (1938)
  193. X** 11 17 99 99 00 Lauren Hutton, actress, is born (1944)
  194. X** 11 17 99 99 00 Lyndon Baines Johnson married Claudia Alta Taylor, better known as "Lady Bird" (1934)
  195. X** 11 17 99 99 00 Rock Hudson, the actor, is born (1925)
  196. X** 11 18 99 99 00 Alan Sheppard, 1st American into space. (1923)
  197. X** 11 18 99 99 00 Boatswain (Lord Byron's dog) dies (1808)
  198. X** 11 18 99 99 00 Eugene Ormandy, conductor, was born (1889)
  199. X** 11 18 99 99 00 Imogene Coca, actress-comedian (1908)
  200. X** 11 18 99 99 00 Linda Evans, actress (1942)
  201. X** 11 18 99 99 00 Louis-Jacques-Mande Daguerre, developed a method of photography (1789)
  202. X** 11 18 99 99 00 Sir William S. Gilbert, playwright (of Gilbert & Sullivan fame) (1836)
  203. X** 11 19 99 99 00 Alan Young, actor (1919)
  204. X** 11 19 99 99 00 Dick Cavett, talk show host (1936)
  205. X** 11 19 99 99 00 Franz Schubert, composer, dies (1828)
  206. X** 11 19 99 99 00 Garrick Utley, NBC newsman (1939)
  207. X** 11 19 99 99 00 George Rogers Clark, frontier military leader in Revolutionary War (1752)
  208. X** 11 19 99 99 00 James A. Garfield, 20th President (March 4-September 19, 1881) (1831)
  209. X** 11 19 99 99 00 Jeane Kirkpatrick, former United Nations Ambassador (1926)
  210. X** 11 19 99 99 00 Jodie Foster, actress (1962)
  211. X** 11 19 99 99 00 Joe Hill (labor organizer) executed in Salt Lake City (1915)
  212. X** 11 19 99 99 00 Larry King, talk show host (1933)
  213. X** 11 19 99 99 00 Roy Campanella, baseball hall-of-famer (1921)
  214. X** 11 19 99 99 00 Ted Turner, broadcasting and sports executive (1938)
  215. X** 11 19 99 99 00 Tommy Dorsey, band leader, is born (1905)
  216. X** 11 20 99 99 00 Alistair Cooke, author, is born (1908)
  217. X** 11 20 99 99 00 Bo Derek, actress, is born (1956)
  218. X** 11 20 99 99 00 Britain's future queen, Princess Elizabeth, married Philip Mountbatten, Duke of Edinburgh (1947)
  219. X** 11 20 99 99 00 Chester Gould, author of Dick Tracy, is born in Pawnee, Oklahoma (1900)
  220. X** 11 20 99 99 00 Dick Smothers, comedian, is born (1939)
  221. X** 11 20 99 99 00 Duane Allman born (Nashville, TN, 1946)
  222. X** 11 20 99 99 00 Edwin Hubble, astronomer, is born (1889)
  223. X** 11 20 99 99 00 Estelle Parsons, actress (1927)
  224. X** 11 20 99 99 00 Francisco Franco, dictator of Spain, dies in Madrid (1975)
  225. X** 11 20 99 99 00 Joe Walsh born (Cleveland, 1947)
  226. X** 11 20 99 99 00 Judy Woodruff, broadcast journalist (1946)
  227. X** 11 20 99 99 00 Otto von Guericke, invented the air pump (1602)
  228. X** 11 20 99 99 00 Peregrine White is born aboard the Mayflower in Massachusetts Bay becoming the first child born of English parents in the New England (1620)
  229. X** 11 20 99 99 00 Robert F. Kennedy, Attorney General and Senator, is born (1925)
  230. X** 11 21 99 99 00 Coleman Hawkins, virtually created the tenor saxophone for jazz, born (1904)
  231. X** 11 21 99 99 00 Francois Marie Arouet Voltaire is born (1694)
  232. X** 11 21 99 99 00 Goldie Hawn, actress, is born (1945)
  233. X** 11 21 99 99 00 Juliet Mills, actress (1941)
  234. X** 11 21 99 99 00 Laurence Luckinbill, actor (1934)
  235. X** 11 21 99 99 00 Lorna Luft, actress-singer (1952)
  236. X** 11 21 99 99 00 Marlo Thomas, actress (1937)
  237. X** 11 21 99 99 00 Natalia Makarova, ballet dancer (1940)
  238. X** 11 21 99 99 00 Rene Magritte, artist, is born (1898)
  239. X** 11 21 99 99 00 Sir Samuel Cunard, founded 1st regular Atlantic steamship line (1787)
  240. X** 11 21 99 99 00 Stan Musial, baseball Hall-of-Famer (1920)
  241. X** 11 21 99 99 00 Vivian Blaine, actress-singer (1921)
  242. X** 11 21 99 99 00 Voltaire, thinker (1694)
  243. X** 11 22 99 99 00 Aldous Huxley, English author, dies (1963)
  244. X** 11 22 99 99 00 Arthur S. Eddington dies (1944)
  245. X** 11 22 99 99 00 Billie Jean King, tennis player (1943)
  246. X** 11 22 99 99 00 Boris Becker, tennis player (1967)
  247. X** 11 22 99 99 00 Charles de Gaulle (1890)
  248. X** 11 22 99 99 00 Greg Luzinski, baseball player (1950)
  249. X** 11 22 99 99 00 Guion S. Bluford, astronaut (1942)
  250. X** 11 22 99 99 00 Hoagy Carmichael, composed 'Star Dust'. (1899)
  251. X** 11 22 99 99 00 Jack London, author, dies (1916)
  252. X** 11 22 99 99 00 Jamie Lee Curtis, actress (1958)
  253. X** 11 22 99 99 00 Mae West, actress and sex idol, dies in LA at 87 (1980)
  254. X** 11 22 99 99 00 Mariel Hemingway, actress (1961)
  255. X** 11 22 99 99 00 President John Kennedy assasinated in Dallas. (1963)
  256. X** 11 22 99 99 00 Robert Vaughn, actor (1932)
  257. X** 11 22 99 99 00 Robin Hood dies according to "A Lytell Geste of Robyn Hood" printed in 1495 (1247)
  258. X** 11 22 99 99 00 Terry Gilliam, comedy writer-animator (1940)
  259. X** 11 22 99 99 00 The English pirate Blackbeard was killed off the coast of Virginia (1718)
  260. X** 11 22 99 99 00 Tom Conti, actor (1941)
  261. X** 11 23 99 99 00 Boris Karloff, the actor, is born in Dulwich, England. (1887)
  262. X** 11 23 99 99 00 Franklin Pierce, 14th President (1853-1857) (1804)
  263. X** 11 23 99 99 00 Harpo Marx of the Marx brothers is born (1893)
  264. X** 11 23 99 99 00 Jerry Bock, broadway composer (1928)
  265. X** 11 23 99 99 00 Maurice Zolotow, author (1913)
  266. X** 11 23 99 99 00 William E. Brock, former Labor Secretary (1930)
  267. X** 11 23 99 99 00 William H. Bonney (Billy the Kid) is born (1859)
  268. X** 11 24 99 99 00 Baruch Spinoza, Dutch philosopher and theologian, is born (1632)
  269. X** 11 24 99 99 00 Erskine Childers, Irish nationalist writer, is executed by the Irish in Dublin (1922)
  270. X** 11 24 99 99 00 Father Junipero Serra, who had a mission in California (1713)
  271. X** 11 24 99 99 00 Henri de Toulouse-Lautrec, painter and graphic artist, is born in Albi, France (1864)
  272. X** 11 24 99 99 00 John Knox, Scottish religious and political reformer, dies (1572)
  273. X** 11 24 99 99 00 Lee Harvey Oswald killed by Jack Ruby (Dallas, 1963)
  274. X** 11 24 99 99 00 Marlin Fitzwater, White House spokesman (1942)
  275. X** 11 24 99 99 00 Scott Joplin, entertainer (1868)
  276. X** 11 24 99 99 00 William F. Buckley, columnist (1925)
  277. X** 11 24 99 99 00 Zachary Taylor, 12th President (1849-1850) (1784)
  278. X** 11 25 99 99 00 Amy Grant, singer (1960)
  279. X** 11 25 99 99 00 Andrew Carnegie, steelman and librarian (1835)
  280. X** 11 25 99 99 00 Bernie Kosar, football player (1963)
  281. X** 11 25 99 99 00 Carry Nation, scrouge of barkeepers and drinkers. (1846)
  282. X** 11 25 99 99 00 Christina Applegate, actress (1971)
  283. X** 11 25 99 99 00 Joe DiMaggio, baseball Hall-of-Famer (1914)
  284. X** 11 25 99 99 00 John F. Kennedy Jr. (1960)
  285. X** 11 25 99 99 00 John Larroquette, actor (1947)
  286. X** 11 25 99 99 00 Kathryn Crosby, actress (1933)
  287. X** 11 25 99 99 00 Ms. Elaine Esposito dies at age 43 after having been in a coma since her appendectomy when she was 6. (1978)
  288. X** 11 25 99 99 00 Pope John XXIII was born Angelo Roncalli in a village near Bergamo, Italy (1881)
  289. X** 11 25 99 99 00 Richardo Montalban, actor, is born (1920)
  290. X** 11 26 99 99 00 Charles M. Schultz, creator of Peanuts cartoon strip, is born in Minneapolis (1922)
  291. X** 11 26 99 99 00 Charles W. Goddard, the author of "The Perils of Pauline", is born (1879)
  292. X** 11 26 99 99 00 Eugene Ionesco, playwright (1912)
  293. X** 11 26 99 99 00 John Harvard, minister, philanthropist, and founder of Harvard University, is born (1607)
  294. X** 11 26 99 99 00 Louisa May Alcott, little woman (1832)
  295. X** 11 26 99 99 00 Norbert Weiner born (1894)
  296. X** 11 26 99 99 00 Rich Little, impressionist (1938)
  297. X** 11 26 99 99 00 Robert Goulet, singer (1933)
  298. X** 11 26 99 99 00 St Peter, martyr and bishop of Alexandria, dies (311)
  299. X** 11 26 99 99 00 Tina Turner, rock singer, is born (1938)
  300. X** 11 26 99 99 00 Willis Haviland Carrier, developed air-conditioning equipment (1876)
  301. X** 11 27 99 99 00 Ada Byron (Countess of Lovelace) only child of Lord and Lady Byron dies (1852)
  302. X** 11 27 99 99 00 Alexander M. Haig, former Secretary of State (1924)
  303. X** 11 27 99 99 00 Anders Celsius (1701)
  304. X** 11 27 99 99 00 Eugene O'Neill, dramatist, dies in Boston (1953)
  305. X** 11 27 99 99 00 Jimi Hendrix (Johnny Allen Hendrix), rock guitarist, is born in Seattle (1942)
  306. X** 11 27 99 99 00 Tracy Austin, tennis player (1962)
  307. X** 11 28 99 99 00 "Buffalo" Bob Smith, children's entertainer, is born (1917)
  308. X** 11 28 99 99 00 Berry Gordy Jr., recording executive (1929)
  309. X** 11 28 99 99 00 Hope Lange, actress, is born (1933)
  310. X** 11 28 99 99 00 Judd Nelson, actor (1959)
  311. X** 11 28 99 99 00 Paul Shaffer, musician, is born (1949)
  312. X** 11 28 99 99 00 Randy Newman, singer (1943)
  313. X** 11 28 99 99 00 Rosalind Russell, actress, dies of cancer at 63 (1976)
  314. X** 11 28 99 99 00 Washington Irving, American writer and diplomat dies (1859)
  315. X** 11 28 99 99 00 William Blake, the English poet and painter, is born (1757)
  316. X** 11 29 99 99 00 C.S. Lewis, author, is born (1898)
  317. X** 11 29 99 99 00 Cardinal Thomas Wolsey, one time advisor to Henry VIII, dies (1530)
  318. X** 11 29 99 99 00 Cathy Moriarty, actress (1960)
  319. X** 11 29 99 99 00 Christian Doppler, discovered Doppler Effect (frequency shift) (1803)
  320. X** 11 29 99 99 00 Chuck Mangione, musician (1940)
  321. X** 11 29 99 99 00 Garry Shandling (1949)
  322. X** 11 29 99 99 00 Howie Mandel, actor-comedian (1955)
  323. X** 11 29 99 99 00 John Mayall born (Cheshire, England, 1933)
  324. X** 11 29 99 99 00 Louisa May Alcott, author of "Little Women", is born (1832)
  325. X** 11 29 99 99 00 Natalie Wood, actress, drowned in a boating accident off Santa Catalina Island, California, at age 43 (1981)
  326. X** 11 29 99 99 00 Nellie Taylor Ross, the first woman governor (Wyoming) and first woman director of the US Mint is born (1876)
  327. X** 11 29 99 99 00 Sir Ambrose Fleming, inventor of the diode. (1849)
  328. X** 11 29 99 99 00 Suzy Chaffee, skier (1946)
  329. X** 11 29 99 99 00 Vin Scully, sportscaster (1927)
  330. X** 11 30 99 99 00 Billy Idol, singer (1955)
  331. X** 11 30 99 99 00 Bo Jackson, football and baseball player (1962)
  332. X** 11 30 99 99 00 Cleopatra, queen of Egypt, commits suicide by snake (30 BC)
  333. X** 11 30 99 99 00 Dick Clark, host of "American Bandstand", is born (1929)
  334. X** 11 30 99 99 00 Jonathan Swift, satirist, wrote "Gulliver's Travels" (1667)
  335. X** 11 30 99 99 00 Mark Twain (Samuel Langhorne Clemens) born in Florida, Missouri (1835)
  336. X** 11 30 99 99 00 Oliver Fisher Winchester, rifle maker. (1810)
  337. X** 11 30 99 99 00 Oscar Wilde, Irish author, dies (1900)
  338. X** 11 30 99 99 00 Shirley Chisholm, former U.S. Representative, D-N.Y. (1924)
  339. X** 11 30 99 99 00 St. Andrew is crucified (70)
  340. X** 11 30 99 99 00 Winston Churchill, statesman, born in Blenheim Palace (1874)
  341. X** 12 01 99 99 00 Bette Midler, singer, is born in Paterson, NJ (1945)
  342. X** 12 01 99 99 00 Bill Scott who did the voice of Bullwinkle, Doright and Mr. Peabody dies (1985)
  343. X** 12 01 99 99 00 Mary Martin the actress was born (1914)
  344. X** 12 01 99 99 00 Rex Stout, American detective story writer, creator of Nero Wolfe, born in Noblesville, Indiana (1886)
  345. X** 12 01 99 99 00 Woody Allen (Allen Stuart Konigsberg) born in Brooklyn, NY (1935)
  346. X** 12 02 99 99 00 Aaron Copland, Americian composer, dies (1990)
  347. X** 12 02 99 99 00 Edmond Rostand, dramatist, and author of "Cyrano de Bergerac", dies in Paris (1914)
  348. X** 12 02 99 99 00 Hernando Cortez, the conqueror of Mexico, dies (1547)
  349. X** 12 02 99 99 00 John Brown, militant abolitionist, hung for treason, murder and conspiracy in Charlestown, Virginia (1859)
  350. X** 12 02 99 99 00 Peter Carl Goldmark, developed color TV & LP records. (1906)
  351. X** 12 02 99 99 00 St. Francis Xavier, founder of the Jesuits, dies (1552)
  352. X** 12 03 99 99 00 Antonio Soler, famed late 18th century Spanish composer. (1729)
  353. X** 12 03 99 99 00 John Bartlett, author of Bartlett's Familiar Quotations, dies (1905)
  354. X** 12 03 99 99 00 Joseph Conrad, author of "Lord Jim", is born (1857)
  355. X** 12 03 99 99 00 Mary Baker Eddy, founder of the "Church of Christ, Scientist", dies (1910)
  356. X** 12 03 99 99 00 Robert Louis Stevenson, author, dies in Samoa (1895)
  357. X** 12 04 99 99 00 Samuel Butler, English novelist, born (1835)
  358. X** 12 04 99 99 00 Tommy Bolin dies of heroin overdose (Miami, 1976)
  359. X** 12 05 99 99 00 Claude Monet the French impressionist painter dies (1926)
  360. X** 12 05 99 99 00 Director Fritz Lang (Metropolis?) born in Vienna (1890)
  361. X** 12 05 99 99 00 General George A. Custer (1839)
  362. X** 12 05 99 99 00 Martin Van Buren, 8th President (1837-1841) (1782)
  363. X** 12 05 99 99 00 Scottish King MacBeth dies (1057)
  364. X** 12 05 99 99 00 Walt (Walter Elias) Disney born in Chicago (1901)
  365. X** 12 05 99 99 00 Wolfgang Amadeus Mozart dies (1791)
  366. X** 12 06 99 99 00 John Eberhard, built 1st large scale pencil factory in US. (1822)
  367. X** 12 06 99 99 00 St. Nicholas, archbishop of Myrna and confessor, patron saint of Russia, mariners, youth and virgins, dies (342)
  368. X** 12 06 99 99 00 William S. Hart, star of silent Western movies (1870)
  369. X** 12 07 99 99 00 Harry Chapin born (New York City, 1942)
  370. X** 12 07 99 99 00 Madame du Barry, mistress of French King Louis XV, is guillotined (1793)
  371. X** 12 07 99 99 00 Mary Queen of Scots is born (1532)
  372. X** 12 07 99 99 00 Noam Chomsky, linguist, is born (1928)
  373. X** 12 07 99 99 00 Theodore Schwann, physiologist, is born (1810)
  374. X** 12 07 99 99 00 Thornton Wilder, novelist, author of "The Bridge of San Luis Rey", dies (1975)
  375. X** 12 07 99 99 00 Willa Cather, a novelist, is born in Virginia (1873)
  376. X** 12 07 99 99 00 William Bligh, captain of the Bounty, dies (1817)
  377. X** 12 08 99 99 00 Eli Whitney, the inventor of the cotton gin, is born (1765)
  378. X** 12 08 99 99 00 Horace (Quintus Horatius Flaccus) born in Venosa, Italy (65 BC)
  379. X** 12 08 99 99 00 James (Grover) Thurber born in Columbus, Ohio (1894)
  380. X** 12 08 99 99 00 Jean Sibelius, major Scandinavian composer. (1865)
  381. X** 12 08 99 99 00 Jim Morrison born (Melbourne, FL, 1943)
  382. X** 12 08 99 99 00 John Lennon, musician and composer, assassinated in New York City (1980)
  383. X** 12 08 99 99 00 Sammy Davis Jr., entertainer, is born in New York, New York (1925)
  384. X** 12 08 99 99 00 Scaramouche dies (1694)
  385. X** 12 08 99 99 00 Vitus Bering the discoverer of the Bering strait dies (1741)
  386. X** 12 08 99 99 00 William Durant, founded General Motors Corp. (1861)
  387. X** 12 09 99 99 00 Clarence Birdseye, became the frozen vegetable king (1886)
  388. X** 12 09 99 99 00 Hermione Gingold, actress who played the mayor's wife in "The Music Man", was born (1887)
  389. X** 12 09 99 99 00 Joel Chandler Harris, author of "Uncle Remus", is born (1848)
  390. X** 12 09 99 99 00 John Milton, epic poet, is born (1608)
  391. X** 12 09 99 99 00 Joseph Stalin, Soviet dictator, is born (1879)
  392. X** 12 09 99 99 00 Natsume Soseki, Japanese novelist and critic, dies (1916)
  393. X** 12 10 99 99 00 Alfred Nobel, the inventor of dynamite, dies (1896)
  394. X** 12 10 99 99 00 Emily Dickinson, the poet, is born (1830)
  395. X** 12 10 99 99 00 Melvil Dewey, created the Dewey Decimal System for libraries (1851)
  396. X** 12 11 99 99 00 Aleksandr Solzhenitsyn (1918)
  397. X** 12 11 99 99 00 Hector Berlioz, the composer, is born (1803)
  398. X** 12 11 99 99 00 Llewellyn, last native prince of Wales, is ambushed and killed at the orders of Edward I (1282)
  399. X** 12 11 99 99 00 Teri Garr, actress, is born in Lakewood, Ohio (1949)
  400. X** 12 12 99 99 00 Douglas Fairbanks Sr., actor, dies (1939)
  401. X** 12 12 99 99 00 Edward G. Robinson, actor, born in Bucharest, Romania (1893)
  402. X** 12 12 99 99 00 Frank Sinatra, singer, is born (1915)
  403. X** 12 12 99 99 00 Gustave Flaubert, novelist, 'Madame Bovary'. (1821)
  404. X** 12 12 99 99 00 Henry Wells, founded American Express Co. and Wells Fargo & Co. (1805)
  405. X** 12 12 99 99 00 Robert Browning, the poet, dies (1889)
  406. X** 12 13 99 99 00 Anna Mary "Grandma" Moses, American primitive painter, dies (1961)
  407. X** 12 13 99 99 00 Dick Van Dyke, entertainer, is born (1925)
  408. X** 12 13 99 99 00 Heinrich Heine, poet, journalist, satirist, is born (1797)
  409. X** 12 13 99 99 00 Nero, Roman emperor, is born (37)
  410. X** 12 13 99 99 00 Nostradamus, French physician and astrologer, is born (1503)
  411. X** 12 13 99 99 00 Russell Porter born (1871)
  412. X** 12 13 99 99 00 Ted Nugent, the motor city madman, born (Detroit, 1949)
  413. X** 12 14 99 99 00 Andrei Sakharov, physicist, Nobel Prize winner and dissident, dies (1989)
  414. X** 12 14 99 99 00 George Washington, president, general, surveyor, dies at Mount Vernon (1799)
  415. X** 12 14 99 99 00 Michael de Nostradamus, supposed seer into the future, is born (1503)
  416. X** 12 14 99 99 00 Prince Albert, husband of Queen Victoria, dies of Typhoid (1861)
  417. X** 12 14 99 99 00 Sir John Oldcastle, prototype for Shakespeare's Falstaff, is burned as a Lollard (1417)
  418. X** 12 14 99 99 00 Tycho Brahe, the astronomer, is born (1553)
  419. X** 12 15 99 99 00 Alexandre-Gustave Eiffel, built a tower in Paris. (1832)
  420. X** 12 15 99 99 00 Charles Edgar Duryea, with his brother, invented 1st auto to be built and operated in US (1861)
  421. X** 12 15 99 99 00 Sitting Bull shot in head while submitting to arrest (1890)
  422. X** 12 15 99 99 00 Walt Disney, animator and film producer, dies (1966)
  423. X** 12 16 99 99 00 Arthur C. Clarke, science fiction author, is born in Somerset (1917)
  424. X** 12 16 99 99 00 George Santayana, philosopher, poet, humanist. (1863)
  425. X** 12 16 99 99 00 Jane Austen, author, is born (1775)
  426. X** 12 16 99 99 00 Liv Ullmann, the actress, is born (1939)
  427. X** 12 16 99 99 00 Ludwig van Beethoven christened in Bonn, Germany (often treated as his birthday since the real date is not known) (1770)
  428. X** 12 16 99 99 00 Sir Noel Coward, playwright (1899)
  429. X** 12 16 99 99 00 Somerset Maugham, novelist and dramatist, dies (1965)
  430. X** 12 17 99 99 00 Arthur Fiedler (1894-1979)
  431. X** 12 17 99 99 00 Grigori Efimovich Rasputin, Russian monk, assassinated (1916)
  432. X** 12 17 99 99 00 Lord Kelvin, the physicist, dies (1907)
  433. X** 12 17 99 99 00 Simon Bolivar, revolutionary leader in South America, dies (1830)
  434. X** 12 17 99 99 00 Sir Humphrey Davy, discovered several chemical elements (1778)
  435. X** 12 17 99 99 00 Willard Libby, chemist, discoverer of carbon dating is born in Grand Valley, Colorado (1908)
  436. X** 12 17 99 99 00 William Safire (Safir) born (1929)
  437. X** 12 18 99 99 00 Antonio Stradivari, renowned violin maker, dies in Cremona, Italy (1737)
  438. X** 12 18 99 99 00 Edwin Armstrong, radio pioneer (invented FM) (1890)
  439. X** 12 18 99 99 00 Keith Richards, rock star, is born (1943)
  440. X** 12 18 99 99 00 Saki, the British short-story writer is born in Burma (1870)
  441. X** 12 18 99 99 00 Soviet Premier, Alexei Kosygin suffers a fatal heart attack (1980)
  442. X** 12 18 99 99 00 Stephen Spielberg, the movie director, is born in Cincinnati, OH (1947)
  443. X** 12 18 99 99 00 Ty Cobb, baseball player, (1886)
  444. X** 12 19 99 99 00 Henry Clay Frick, industrialist; worked for Carnegie. (1849)
  445. X** 12 19 99 99 00 William Turner, the artist known for is brilliant impressionistic skies, dies (1851)
  446. X** 12 20 99 99 00 Arthur Rubinstein, pianist, dies in Geneva, Switzerland (1982)
  447. X** 12 20 99 99 00 Bridie Murphy is born (1798)
  448. X** 12 20 99 99 00 Harvey Firestone, rubber manufacturer, is born (1868)
  449. X** 12 20 99 99 00 John Geary, 1st Postmaster, 1st Mayor (May 1, 1850) of San Francisco (?) is born (1819)
  450. X** 12 20 99 99 00 John Steinbeck, author, dies (1968)
  451. X** 12 20 99 99 00 Richard Daley, mayor of Chicago, dies (1976)
  452. X** 12 20 99 99 00 Thomas Graham, the father of colloid chemistry (1805)
  453. X** 12 21 99 99 00 Benjamin Disraeli, statesman and novelist, is born (1804)
  454. X** 12 21 99 99 00 F. Scott Fitzgerald, author, dies in Hollywood (1940)
  455. X** 12 21 99 99 00 Frank Zappa, musician and song writer, born in Baltimore (1940)
  456. X** 12 21 99 99 00 General George S. Patton dies of injuries received in a car accident (1945)
  457. X** 12 21 99 99 00 Josh Gibson, in professional baseball, the "Negro Babe Ruth" (1911)
  458. X** 12 22 99 99 00 Giacomo Puccini, composer of "La Boheme", and "Madame Butterfly", is born (1858)
  459. X** 12 22 99 99 00 Glenn Miller disappears crossing the English Channel (1944)
  460. X** 12 22 99 99 00 Lady Bird Johnson, wife of president and Texas environmental proponent, is born (1913)
  461. X** 12 22 99 99 00 Srinivasa Ramanujan, one of the most brilliant mathematicians to ever live, was born (1887)
  462. X** 12 23 99 99 00 Jean-Francois Champollion, deciphered Egyptian hieroglyphics (1790)
  463. X** 12 23 99 99 00 Joseph Smith, founder of the The Church of Jesus Christ of Latter-day Saints (The Mormons), is born in Sharon, Vermont (1805)
  464. X** 12 24 99 99 00 Howard Hughes, aircraft manufacturer, was born (1905)
  465. X** 12 24 99 99 00 John Muir, naturalist, dies (1914)
  466. X** 12 24 99 99 00 Kit Carson, explorer, is born (1809)
  467. X** 12 25 99 99 00 Anwar Sadat, president of Egypt, is born (1918)
  468. X** 12 25 99 99 00 Cab Calloway, bandleader, is born (1907)
  469. X** 12 25 99 99 00 Humphrey Bogart, actor, is born (1899)
  470. X** 12 25 99 99 00 Jesus of Nazareth, Christian messiah, is born. Actually it is suspected that he was born in the summer. (4 BC)
  471. X** 12 25 99 99 00 Sir Isaac Newton born in Grantham, England (1642)
  472. X** 12 25 99 99 00 Sissy Spacek, actress, is born (1949)
  473. X** 12 25 99 99 00 W.C. Fields dies (1946)
  474. X** 12 26 99 99 00 Charles Babbage, credited with designing the first computer, is born (1791)
  475. X** 12 26 99 99 00 Henry Miller, the author, is born (1891)
  476. X** 12 26 99 99 00 Mao Tse-tung, revolutionary, is born in Hunan Province (1893)
  477. X** 12 27 99 99 00 Hoagy Carmichael, songwriter, dies (1981)
  478. X** 12 27 99 99 00 Johannes Kepler, astronomer, is born (1571)
  479. X** 12 27 99 99 00 Marlene Dietrich, singer and actor, is born (1904)
  480. X** 12 27 99 99 00 Philippus Paracelsus, Alchemist and physician, opposed humoral theory, stressed observation, is born (1493)
  481. X** 12 28 99 99 00 Arthur S. Eddington born (1882)
  482. X** 12 28 99 99 00 Edgar Winter born (Beaumont, TX, 1946)
  483. X** 12 28 99 99 00 John von Neumann, mathematician and computer scientist, born (1903)
  484. X** 12 28 99 99 00 Stan Lee (Stanley Martin Lieber), editor and publisher for Marvel Comics, was born (1922)
  485. X** 12 28 99 99 00 Woodrow Wilson, 28th President (1912-1921) (1856)
  486. X** 12 29 99 99 00 Andrew Johnson, 17th President (1865-1869) (1808)
  487. X** 12 29 99 99 00 Charles Goodyear, invented vulcanization process for rubber (1800)
  488. X** 12 29 99 99 00 Pablo Casals, Spanish Cellist, is born (1876)
  489. X** 12 29 99 99 00 William Ewart Gladstone, British statesman (1809)
  490. X** 12 30 99 99 00 Alfred Whitehead, mathematician and philosopher, dies (1947)
  491. X** 12 30 99 99 00 Amelia Bloomer, women's rights activist, popularized the term bloomers, dies (1894)
  492. X** 12 30 99 99 00 Robert Boyle, chemist and physicist, dies (1691)
  493. X** 12 30 99 99 00 Rudyard Kipling, author and poet, is born (1865)
  494. X** 12 30 99 99 00 Stephen Leacock, economist and humourist, is born (1869)
  495. X** 12 31 99 99 00 Henri Matisse, painter, is born (1869)
  496. X** 12 31 99 99 00 John Denver, song writer and singer, born in Roswell, NM (1943)
  497. X** 12 31 99 99 00 Ricky Nelson, singer, his band and girlfriend all killed in a light plane crash in Texas (1985)
  498. END_OF_FILE
  499. if test 32402 -ne `wc -c <'dates/lives6'`; then
  500.     echo shar: \"'dates/lives6'\" unpacked with wrong size!
  501. fi
  502. # end of 'dates/lives6'
  503. fi
  504. if test -f 'event.c' -a "${1}" != "-c" ; then 
  505.   echo shar: Will not clobber existing file \"'event.c'\"
  506. else
  507. echo shar: Extracting \"'event.c'\" \(8590 characters\)
  508. sed "s/^X//" >'event.c' <<'END_OF_FILE'
  509. X/*
  510. X * $Header: event.c,v 2.4 91/03/27 16:45:33 billr Exp $
  511. X */
  512. X/*
  513. X * event.c
  514. X *
  515. X * Author: Philip Heller, Sun Microsystems. Inc. <terrapin!heller@sun.com>
  516. X *
  517. X * Original source Copyright (C) 1987, Sun Microsystems, Inc.
  518. X *    All Rights Reserved
  519. X * Permission is hereby granted to use and modify this program in source
  520. X * or binary form as long as it is not sold for profit and this copyright
  521. X * notice remains intact.
  522. X *
  523. X *
  524. X * Changes/additions by: Bill Randle, Tektronix, Inc. <billr@saab.CNA.TEK.COM>
  525. X *
  526. X * Changes and additions Copyright (C) 1988, 1989, 1991 Tektronix, Inc.
  527. X *    All Rights Reserved
  528. X * Permission is hereby granted to use and modify the modifications in source
  529. X * or binary form as long as they are not sold for profit and this copyright
  530. X * notice remains intact.
  531. X */
  532. X/********************************************************
  533. X *                            *
  534. X *    Main driver and month and year event routines    *
  535. X *    for main subwindow                  *
  536. X *                            *
  537. X ********************************************************/
  538. X
  539. X
  540. X#include <stdio.h>
  541. X#include <suntool/sunview.h>
  542. X#include <suntool/panel.h>
  543. X#include <suntool/canvas.h>
  544. X#include <suntool/seln.h>
  545. X#include <sys/file.h>
  546. X#include "ct.h"
  547. X#include "event.h"
  548. X
  549. Xextern Frame frame;
  550. Xextern Frame fframe, sframe, mframe, fileframe;
  551. Xextern struct tm olddate, closedate;
  552. Xextern int update_interval, show_time;
  553. Xextern char timestr[];
  554. Xextern Icon icon;
  555. Xextern int monday_first, hour24;
  556. Xextern Pixfont *sfont;
  557. Xextern Seln_client s_client;
  558. Xextern int locked;
  559. XNotify_value myframe_interposer();
  560. X
  561. Xvoid
  562. Xmainsw_inputevent(canvas, event)
  563. XCanvas canvas;
  564. XEvent *event;
  565. X{
  566. X    if (locked)    /* no updates allowed */
  567. X        return;
  568. X
  569. X    /* check for L7 key and close frame if found */
  570. X    if (event_id(event) == KEY_LEFT(7) && event_is_up(event)) {
  571. X        close_frame();
  572. X#ifdef SUN3_5
  573. X    } else if (event_id(event) == KEY_LEFT(5) && event_is_up(event)) {
  574. X        /* expose (L5) event */
  575. X        int rootfd, myfd;
  576. X        struct screen frame_screen;
  577. X
  578. X        /* Get root window from frame's desktop */
  579. X        myfd = (int)window_get(frame, WIN_FD);
  580. X        (void)win_screenget(myfd, &frame_screen);
  581. X        rootfd = open(frame_screen.scr_rootname, O_RDONLY, 0);
  582. X        if (rootfd == -1) {
  583. X            err_rpt("couldn't open root screen", NON_FATAL);
  584. X            return;
  585. X        }
  586. X        if (win_fdtonumber(myfd) == win_getlink(rootfd, WL_TOPCHILD))
  587. X            /* we're on top */
  588. X            wmgr_bottom(myfd, rootfd);
  589. X        else
  590. X            wmgr_top(myfd, rootfd);
  591. X        close(rootfd);
  592. X#endif
  593. X    } else {
  594. X        switch (mainsw_state) {
  595. X            case DISPLAYING_DAY:
  596. X                if (event_id(event) == KEY_LEFT(6) && event_is_up(event)) {
  597. X                    if (seln_acquire(s_client, SELN_PRIMARY) != SELN_PRIMARY) {
  598. X                        err_rpt("Can't acquire selection primary", NON_FATAL);
  599. X                        return;
  600. X                    }
  601. X                    if (seln_acquire(s_client, SELN_SHELF) != SELN_SHELF) {
  602. X                        err_rpt("Can't acquire selection shelf", NON_FATAL);
  603. X                        return;
  604. X                    }
  605. X                    seln_report_event(s_client, event);
  606. X                }
  607. X                day_inputevent(canvas, event);
  608. X                break;
  609. X            case DISPLAYING_WEEK:
  610. X                week_inputevent(canvas, event);
  611. X                break;
  612. X            case DISPLAYING_MONTH:
  613. X                month_inputevent(canvas, event);
  614. X                break;
  615. X            case DISPLAYING_YEAR:
  616. X                year_inputevent(canvas, event);
  617. X                break;
  618. X        }
  619. X    }
  620. X}
  621. X
  622. Xmonth_inputevent(canvas, event)
  623. XCanvas canvas;
  624. XEvent *event;
  625. X{
  626. X        int i, x, y, week_index, new_day;
  627. X
  628. X    /* translate coordinates to pixwin space */
  629. X    event = canvas_window_event(canvas, event);
  630. X        x = event_x(event);
  631. X        y = event_y(event);          
  632. X        if (event_id(event) != MS_LEFT)
  633. X                return;
  634. X
  635. X        if (event_is_up(event))  {   /* Button up. */
  636. X        fix_current_day();
  637. X                if (selected_type == DAY) {
  638. X                        mainsw_state = DISPLAYING_DAY;
  639. X                        window_set(canvas, WIN_CURSOR, day_cursor, 0);
  640. X            draw_day();
  641. X                }
  642. X                else if (selected_type == WEEK) {
  643. X            mainsw_state = DISPLAYING_WEEK;
  644. X            window_set(canvas, WIN_CURSOR, week_cursor, 0);
  645. X            draw_week();
  646. X        }
  647. X        return;
  648. X    }
  649. X
  650. X    /* Button down. */
  651. X        selected_type = NONE;
  652. X        for (i=0; i<monthlength(current.tm_mon); i++) {   /* In a day? */
  653. X                if ((x >= boxlims[i].lowx) &&
  654. X                    (x <= boxlims[i].highx) &&
  655. X                    (y >= boxlims[i].lowy) &&
  656. X                    (y <= boxlims[i].highy)) {
  657. X                current.tm_mday = i + 1;
  658. X                                selected_type = DAY;
  659. X                                pw_write(main_pixwin,boxlims[i].lowx+3,
  660. X                                  boxlims[i].lowy+3,58,58,PIX_NOT(PIX_DST),NULL,0,0);
  661. X                                return;
  662. X                }              
  663. X        }                      
  664. X        for (i=0; i<6; i++) {              /* No.  In a week? */
  665. X                if (week_arrows[i].active == 0)
  666. X                        return;
  667. X                if ((x >= week_arrows[i].left) &&
  668. X                    (x <= week_arrows[i].right) &&
  669. X                    (y >= week_arrows[i].top) &&
  670. X                    (y <= week_arrows[i].bottom))  {
  671. X            week_index = i;
  672. X            current.tm_mday = -current.tm_wday + 1 + (7 * week_index);
  673. X            if (monday_first) {
  674. X                current.tm_mday++;
  675. X                if (current.tm_wday == SUN)
  676. X                    current.tm_mday -= 7;
  677. X            }
  678. X                        selected_type = WEEK;
  679. X                        pw_write(main_pixwin,week_arrows[week_index].left,
  680. X                          week_arrows[week_index].top,smallarrow_pr->pr_size.x,
  681. X              smallarrow_pr->pr_size.y,PIX_SRC^PIX_DST,
  682. X                          smallarrow_pr,0,0);
  683. X                        return;
  684. X                }              
  685. X        }                      
  686. X}                               
  687. X
  688. Xyear_inputevent(canvas, event)
  689. XCanvas canvas;
  690. XEvent *event;
  691. X{
  692. X    int x, y, i;
  693. X    static int mday;
  694. X
  695. X    /* translate coordinates to pixwin space */
  696. X    event = canvas_window_event(canvas, event);
  697. X        x = event_x(event);
  698. X        y = event_y(event);          
  699. X        if (event_id(event) != MS_LEFT)
  700. X                return;
  701. X        if (event_is_up(event))  {       /* Button up. */
  702. X        if (selected_type == MONTH) {
  703. X            mainsw_state = DISPLAYING_MONTH;
  704. X            window_set(canvas, WIN_CURSOR, month_cursor, 0);
  705. X            draw_month();
  706. X        }
  707. X        return;
  708. X    }
  709. X
  710. X    /* Button down. */
  711. X    selected_type = NONE;
  712. X        for (i=0; i<12; i++) {                   /* In a month? */
  713. X                if ((x >= mboxlims[i].lowx) &&
  714. X                    (x <= mboxlims[i].highx) &&
  715. X                    (y >= mboxlims[i].lowy) &&
  716. X                    (y <= mboxlims[i].highy)) {
  717. X            selected_type = MONTH;
  718. X            current.tm_mday = 1;
  719. X            current.tm_mon = i;
  720. X            pw_write(main_pixwin,mboxlims[i].lowx,
  721. X              mboxlims[i].lowy,7*ybox_width,ybox_height-1,PIX_NOT(PIX_DST),NULL,0,0);
  722. X            break;
  723. X        }
  724. X    }
  725. X}
  726. X
  727. XNotify_value
  728. Xcheck_close(client, event, arg, when)
  729. XNotify_client client;
  730. XEvent *event;
  731. XNotify_arg arg;
  732. XNotify_event_type when;
  733. X{
  734. X    /* check for L7 key and close frame if found */
  735. X    /*** DEBUG ***/
  736. X    /*
  737. X    fprintf(stderr, "checking for L7: event = %d\n", event_id(event));
  738. X    */
  739. X    if (event_id(event) == KEY_LEFT(7) && event_is_up(event))
  740. X        return (myframe_interposer(client, event, arg, when));
  741. X    else
  742. X        return (notify_next_event_func(client, event, arg, when));
  743. X}
  744. X
  745. Xclose_frame()
  746. X{
  747. X    Icon cur_icon;
  748. X
  749. X    /* save some information as we close */
  750. X    if (mainsw_state == DISPLAYING_DAY && day_is_open)
  751. X        close_day();
  752. X    /* if frame not closed yet, close it now (for the canvas) */
  753. X    if (!(int)window_get(frame, FRAME_CLOSED))
  754. X        window_set(frame, FRAME_CLOSED, TRUE, 0);
  755. X    olddate = current;
  756. X    get_today();
  757. X    closedate = today;
  758. X    if (fframe) {
  759. X        /* kill off future appt popup */
  760. X        window_destroy(fframe);
  761. X        fframe = 0;
  762. X    }
  763. X    /* hide file frame */
  764. X    window_set(fileframe, WIN_SHOW, FALSE, 0);
  765. X#ifndef NO_SUN_MOON
  766. X    /* kill sun/moon data frames */
  767. X    if (mframe)
  768. X        mframe_done(0);
  769. X    if (sframe)
  770. X        sframe_done(0);
  771. X#endif
  772. X    check_calendar();    /* update icon */
  773. X    if (show_time)
  774. X        /* update time label */
  775. X        update_icon_time();
  776. X}
  777. X
  778. X/* update the time field of the current icon */
  779. Xupdate_icon_time()
  780. X{
  781. X    Icon cur_icon;
  782. X
  783. X    format_icon_time();
  784. X    cur_icon = (Icon) window_get(frame, FRAME_ICON);
  785. X    icon_set(cur_icon, ICON_LABEL, timestr, 0);
  786. X    window_set(frame, FRAME_ICON, cur_icon, 0);
  787. X}
  788. X
  789. Xformat_icon_time()
  790. X{
  791. X    if (update_interval >= 60)
  792. X        /* display hh:mm */
  793. X        sprintf(timestr, " %2d:%02d", today.tm_hour, today.tm_min);
  794. X    else
  795. X        /* display hh:mm:ss */
  796. X        sprintf(timestr, " %2d:%02d:%02d", today.tm_hour, today.tm_min, today.tm_sec);
  797. X    if (!hour24) {
  798. X        /* display am/pm for 12-hour time */
  799. X        if (today.tm_hour > 12) {
  800. X            strcat(timestr, "pm");
  801. X            timestr[1] = ((today.tm_hour - 12) / 10) + '0';
  802. X            timestr[2] = ((today.tm_hour - 12) % 10) + '0';
  803. X        } else if (today.tm_hour == 12) {
  804. X            strcat(timestr, "pm");
  805. X        } else {
  806. X            strcat(timestr, "am");
  807. X        }
  808. X        if (timestr[1] == '0')
  809. X            timestr[1] = ' ';
  810. X    }
  811. X}
  812. END_OF_FILE
  813. if test 8590 -ne `wc -c <'event.c'`; then
  814.     echo shar: \"'event.c'\" unpacked with wrong size!
  815. fi
  816. # end of 'event.c'
  817. fi
  818. if test -f 'wpaint.c' -a "${1}" != "-c" ; then 
  819.   echo shar: Will not clobber existing file \"'wpaint.c'\"
  820. else
  821. echo shar: Extracting \"'wpaint.c'\" \(10863 characters\)
  822. sed "s/^X//" >'wpaint.c' <<'END_OF_FILE'
  823. X/*
  824. X * $Header: wpaint.c,v 2.5 91/03/27 16:46:49 billr Exp $
  825. X */
  826. X/*
  827. X * wpaint.c
  828. X *
  829. X * Author: Philip Heller, Sun Microsystems. Inc. <terrapin!heller@sun.com>
  830. X *
  831. X * Original source Copyright (C) 1987, Sun Microsystems, Inc.
  832. X *    All Rights Reserved
  833. X * Permission is hereby granted to use and modify this program in source
  834. X * or binary form as long as it is not sold for profit and this copyright
  835. X * notice remains intact.
  836. X *
  837. X *
  838. X * Changes/additions by: Bill Randle, Tektronix, Inc. <billr@saab.CNA.TEK.COM>
  839. X *
  840. X * Changes and additions Copyright (C) 1988, 1989, 1991 Tektronix, Inc.
  841. X *    All Rights Reserved
  842. X * Permission is hereby granted to use and modify the modifications in source
  843. X * or binary form as long as they are not sold for profit and this copyright
  844. X * notice remains intact.
  845. X */
  846. X/***************************************************
  847. X *                           *
  848. X *    Artistic routines that draw in the main    *
  849. X * subwindow for the week display.           *
  850. X *                           *
  851. X ***************************************************/
  852. X
  853. X#include <suntool/sunview.h>
  854. X#include <suntool/canvas.h>
  855. X#include <ctype.h>
  856. X#include <stdio.h>
  857. X#include "ct.h"
  858. X#include "paint.h"
  859. X
  860. Xextern int week_message_size;
  861. X
  862. X/*
  863. X * Routine to draw "Week-at-a-Glance".
  864. X */
  865. X
  866. Xdraw_week()
  867. X{
  868. X    struct tm Save;
  869. X    extern void fix_current_day();
  870. X
  871. X    lock_cursors();
  872. X    /* destory future appts popup, if it exists */
  873. X    if (fframe) {
  874. X        window_destroy(fframe);
  875. X        fframe = 0;
  876. X    }
  877. X    fix_current_day();
  878. X    Save = current;
  879. X    current.tm_mday -= current.tm_wday; /* Sunday of this week */
  880. X    if (monday_first)  {
  881. X        if (current.tm_wday == SUN)
  882. X            current.tm_mday -= 7;
  883. X        if (nr_weekdays == 7)
  884. X            current.tm_mday++; /* start on Monday */
  885. X    }
  886. X    fix_current_day();
  887. X    if (nr_weekdays < 7) {
  888. X        current.tm_mday++;
  889. X        fix_current_day();
  890. X    }
  891. X    working(TRUE);
  892. X    get_week_appts();
  893. X    working(FALSE);
  894. X    pw_batch_on(main_pixwin);
  895. X    paint_week_outline();
  896. X    paint_week_trim();
  897. X    working(TRUE);
  898. X    draw_week_appts();
  899. X    pw_batch_off(main_pixwin);
  900. X    /*
  901. X    (void)win_post_id(canvas, WIN_REPAINT, NOTIFY_SAFE);
  902. X    */
  903. X    free_week_appts();
  904. X    current = Save;
  905. X    (void)get_day_appts();
  906. X    working(FALSE);
  907. X    unlock_cursors();
  908. X}
  909. X
  910. X
  911. X/* Paint the outline for "Week-at-a-Glance". */
  912. Xpaint_week_outline()
  913. X{
  914. X    Rect *rect;
  915. X        int x, y, i, j, colx;
  916. X        rect = (Rect *) window_get(canvas, WIN_RECT);
  917. X        pw_writebackground(main_pixwin,0,0,rect->r_width,rect->r_height,PIX_CLR);
  918. X        startx = (rect->r_width - nr_weekdays*weekslot_width) / 2;
  919. X    starty = 10 + (rect->r_height - (n_slots*(weekslot_height+1))) / 2;
  920. X    First = current;
  921. X        for (i=0; i<nr_weekdays; i++) {
  922. X                x = startx + i*weekslot_width;
  923. X        y = starty;
  924. X                week_boxes[i].wday_pos.left = x;
  925. X                week_boxes[i].wday_pos.top = y;
  926. X                week_boxes[i].wday_pos.right = x + weekslot_width;
  927. X                week_boxes[i].wday_pos.bottom = starty + n_slots*weekslot_height;
  928. X        week_boxes[i].moreb_pos.left = x + (weekslot_width - morebutton->pr_size.x) / 2;
  929. X        week_boxes[i].moreb_pos.top = week_boxes[i].wday_pos.bottom + font->pf_defaultsize.y + font->pf_defaultsize.y/2;
  930. X        week_boxes[i].moreb_pos.right = week_boxes[i].moreb_pos.left + morebutton->pr_size.x;
  931. X        week_boxes[i].moreb_pos.bottom = week_boxes[i].moreb_pos.top + morebutton->pr_size.y;
  932. X                for (j=0; j<n_slots; j++) {
  933. X            if (ymd_compare(today, current) == 0)
  934. X                pw_write(main_pixwin,x,y,weekslot_width,
  935. X                  weekslot_height,PIX_SRC,weekslot_td_pr,0,0);
  936. X            else
  937. X                pw_write(main_pixwin,x,y,weekslot_width,
  938. X                  weekslot_height,PIX_SRC,weekslot_pr,0,0);
  939. X                        y += weekslot_height;
  940. X        }
  941. X        current.tm_mday++;
  942. X        fix_current_day();
  943. X        }
  944. X    pw_vector(main_pixwin,startx,starty,startx+nr_weekdays*weekslot_width,starty,PIX_SET,1);
  945. X        pw_vector(main_pixwin,startx,y-1,startx+nr_weekdays*weekslot_width,y-1,PIX_SET,1);
  946. X    current = First;
  947. X    sun_moon_buttons(FALSE);
  948. X    print_button(TRUE);
  949. X}
  950. X
  951. X
  952. Xpaint_week_trim()
  953. X{
  954. X    int i, j, x, y, month, day, rightx;
  955. X    char c[8];
  956. X        
  957. X    First = current;
  958. X        for (i=0; i<nr_weekdays; i++) {
  959. X                x = startx + i*weekslot_width + (weekslot_width - 2*(font->pf_defaultsize.x+2))/2;
  960. X        if (monday_first && i == 6)
  961. X            sprintf(c, "%3.3s", daynames[SUN]);
  962. X        else
  963. X            sprintf(c, "%3.3s", daynames[First.tm_wday + i]);
  964. X                pw_text(main_pixwin, x, starty-5, PIX_SRC, font, c);
  965. X        }
  966. X        
  967. X        y = starty + weekslot_height - 4;
  968. X        rightx = startx + nr_weekdays*weekslot_width + 10;
  969. X    for (i=0; i<n_slots; i++) {
  970. X        if (i < n_tslots) {
  971. X            if (hour24)
  972. X                sprintf(c, "%2d:%s",
  973. X                    start_hour+(i/2),
  974. X                    i%2 == 0 ? "00" : "30");
  975. X            else
  976. X                sprintf(c, "%2d:%s%s",
  977. X                    (start_hour+(i/2))%12 == 0 ? 12 : (start_hour+(i/2))%12,
  978. X                    i%2 == 0 ? "00" : "30", (start_hour+(i/2) < 12 ? "am" : "pm"));
  979. X        } else if (i == n_tslots) {
  980. X            sprintf(c, (hour24 ? "Notes" : " Notes"));
  981. X        } else {
  982. X            sprintf(c, "     ");
  983. X        }
  984. X        if (hour24) {
  985. X            pw_text(main_pixwin, startx-7*font->pf_defaultsize.x, y, PIX_SRC, font, c);
  986. X            pw_text(main_pixwin, rightx, y, PIX_SRC, font, c);
  987. X        } else {
  988. X            pw_text(main_pixwin, startx-8*font->pf_defaultsize.x, y, PIX_SRC, font, c);
  989. X            pw_text(main_pixwin, rightx-font->pf_defaultsize.x, y, PIX_SRC, font, c);
  990. X        }
  991. X                y += weekslot_height;
  992. X    }
  993. X
  994. X        x = startx + (weekslot_width - 7*(font->pf_defaultsize.x+2))/2 + font->pf_defaultsize.x+7;
  995. X
  996. X    sprintf(c, "%d", 1900 + current.tm_year);
  997. X    pw_text(main_pixwin, startx-3*font->pf_defaultsize.x,
  998. X      y+weekslot_height, PIX_SRC, font, c);
  999. X
  1000. X    sprintf(c, "Week: %d", week_number());
  1001. X    pw_text(main_pixwin, startx+nr_weekdays*weekslot_width-2*font->pf_defaultsize.x,
  1002. X      y+weekslot_height, PIX_SRC, font, c);
  1003. X
  1004. X    /* display week dates (month, day) */
  1005. X        for (i=0; i<nr_weekdays; i++) {
  1006. X        if (day_first)
  1007. X            sprintf(c, "%2d %3.3s",
  1008. X                current.tm_mday, monthnames[current.tm_mon]);
  1009. X        else
  1010. X            sprintf(c, "%3.3s %2d",
  1011. X                monthnames[current.tm_mon], current.tm_mday);
  1012. X        pw_text(main_pixwin, x, y, PIX_SRC, font, c);
  1013. X                x += weekslot_width;
  1014. X        current.tm_mday++;
  1015. X        fix_current_day();
  1016. X        }
  1017. X    current = First;
  1018. X    fix_current_day();
  1019. X}       
  1020. X
  1021. X
  1022. Xget_week_appts()
  1023. X{
  1024. X    int i, j, save_read;
  1025. X    struct tm Current;
  1026. X
  1027. X    save_read = read_only;
  1028. X    read_only = 1;
  1029. X    Current = current;
  1030. X    for (i=0; i<nr_weekdays; i++) {
  1031. X        get_day_appts();    /* fills in slots[] array */
  1032. X        for (j=0; j<n_slots; j++)
  1033. X            week_boxes[i].weekslots[j] = slots[j];
  1034. X        current.tm_mday++;
  1035. X        fix_current_day();
  1036. X    }
  1037. X    read_only = save_read;
  1038. X    current = Current;
  1039. X    fix_current_day();
  1040. X}                       
  1041. X
  1042. X/* draw in week appointments */
  1043. Xdraw_week_appts()
  1044. X{
  1045. X    int index, slotno, offset, i;
  1046. X    int narrows, pixoffset;
  1047. X    struct dayslot *slptr;
  1048. X
  1049. X    for (index=0; index<nr_weekdays; index++) {
  1050. X        /* clear all arrow position information */
  1051. X        for (slotno=0; slotno<n_slots; slotno++)
  1052. X            week_boxes[index].weekslots[slotno].arrow_pos = 0;
  1053. X        week_boxes[index].more = 0;
  1054. X        for (slotno=0; slotno<n_slots; slotno++) {
  1055. X            slptr = &week_boxes[index].weekslots[slotno];
  1056. X            if (slptr->active) {
  1057. X                x_coord = week_boxes[index].wday_pos.left;
  1058. X                y_coord = week_boxes[index].wday_pos.top +
  1059. X                  slotno*weekslot_height;
  1060. X                write_week_str(index, slotno);
  1061. X                if ((narrows = slptr->cur_appt->arrows) > 0) {
  1062. X                    /* find first free position for arrow */
  1063. X                    offset = 0;
  1064. X                    while (slptr->arrow_pos & 1<<offset)
  1065. X                        offset++;
  1066. X                    slptr->arrow_pos |= 1<<offset;
  1067. X                    i = slotno + narrows;
  1068. X                    week_boxes[index].weekslots[i].arrow_pos |= 1<<offset;
  1069. X                    draw_weekarrowhead(index, i, offset, FALSE);
  1070. X                    while (--narrows > 0) {
  1071. X                        week_boxes[index].weekslots[--i].arrow_pos
  1072. X                          |= 1<<offset;
  1073. X                        draw_weekarrowshaft(index, i, offset, FALSE);
  1074. X                    }
  1075. X                }
  1076. X                wmore_check(index, slotno);
  1077. X            }
  1078. X        }
  1079. X    }
  1080. X}
  1081. X
  1082. Xdraw_weekarrowshaft(day, bi, offset, gray)
  1083. Xint day, bi;
  1084. Xint offset, gray;
  1085. X{
  1086. X    int x, y;
  1087. X    int pixoffset;
  1088. X
  1089. X    /* mark this position as used */
  1090. X    week_boxes[day].weekslots[bi].arrow_pos |= 1<<offset;
  1091. X    pixoffset = (offset + 1) * 16;
  1092. X    if (pixoffset > weekslot_width - 16)
  1093. X        pixoffset = weekslot_width - 16;
  1094. X    y = week_boxes[day].wday_pos.top + bi*weekslot_height;
  1095. X    x = week_boxes[day].wday_pos.left;
  1096. X    pw_write(main_pixwin, x+1+pixoffset, y, 14, weekslot_height,
  1097. X        PIX_SRC|PIX_DST, (gray ? gr_weekarrowshaft_pr : weekarrowshaft_pr), 0, 0);
  1098. X}
  1099. X
  1100. Xdraw_weekarrowhead(day, bi, offset, gray)
  1101. Xint day, bi;
  1102. Xint offset, gray;
  1103. X{
  1104. X    int x, y;
  1105. X    int pixoffset;
  1106. X
  1107. X    /* mark this position as used */
  1108. X    week_boxes[day].weekslots[bi].arrow_pos |= 1<<offset;
  1109. X    pixoffset = (offset + 1) * 16;
  1110. X    if (pixoffset > weekslot_width - 16)
  1111. X        pixoffset = weekslot_width - 16;
  1112. X    y = week_boxes[day].wday_pos.top + bi*weekslot_height;
  1113. X    x = week_boxes[day].wday_pos.left;
  1114. X    pw_write(main_pixwin, x+1+pixoffset, y, 14, weekslot_height,
  1115. X        PIX_SRC|PIX_DST, (gray ? gr_weekarrowhead_pr : weekarrowhead_pr), 0, 0);
  1116. X}
  1117. X
  1118. Xwrite_week_str(day, bi)
  1119. Xint day;
  1120. Xint bi;
  1121. X{
  1122. X    char slot_str[MAX_STRLEN];
  1123. X    char *ptr;
  1124. X    int strl;
  1125. X
  1126. X    strl = strlen(week_boxes[day].weekslots[bi].cur_appt->str);
  1127. X    if (strl <= week_message_size)
  1128. X        strcpy(slot_str, week_boxes[day].weekslots[bi].cur_appt->str);
  1129. X    else {
  1130. X        /* show leading part */
  1131. X        
  1132. X        strncpy(slot_str, week_boxes[day].weekslots[bi].cur_appt->str, week_message_size);
  1133. X        slot_str[week_message_size+1] = '\0';
  1134. X    }
  1135. X    pw_write(main_pixwin, x_coord+1, y_coord+1, weekslot_width-2,
  1136. X        weekslot_height-2, PIX_SET, NULL, 0, 0);
  1137. X    pw_text(main_pixwin, x_coord+4, y_coord+font->pf_defaultsize.y, PIX_NOT(PIX_SRC),
  1138. X        font, slot_str);
  1139. X}
  1140. X
  1141. X/* free memory alloc'd for appts */
  1142. Xfree_week_appts()
  1143. X{
  1144. X    int index, slotno;
  1145. X    struct appt_entry *aptr, *optr;
  1146. X
  1147. X    for (index=0; index<nr_weekdays; index++) {
  1148. X        for (slotno=0; slotno<n_slots; slotno++) {
  1149. X            if (week_boxes[index].weekslots[slotno].first)
  1150. X                for (aptr=week_boxes[index].weekslots[slotno].first; aptr; ) {
  1151. X                    optr = aptr;
  1152. X                    aptr = aptr->next;
  1153. X                    free(optr);
  1154. X                }
  1155. X        }
  1156. X    }
  1157. X}
  1158. X
  1159. X/* display "more" button if necessary */
  1160. Xwmore_check(day, bi)
  1161. Xint day, bi;
  1162. X{
  1163. X    int i, narrows, offset;
  1164. X    int x, y;
  1165. X    struct appt_entry *aptr;
  1166. X    struct dayslot *slptr;
  1167. X
  1168. X    slptr = &week_boxes[day].weekslots[bi];
  1169. X    if (slptr->active > 1) {
  1170. X        for (aptr=slptr->first; aptr; aptr=aptr->next) {
  1171. X            if (aptr == slptr->cur_appt)
  1172. X                continue;  /* already did this one */
  1173. X            if (chk_deleted(slptr, aptr))
  1174. X                continue;
  1175. X            if ((narrows = aptr->arrows) > 0) {
  1176. X                /* find first free position for arrow */
  1177. X                offset = 0;
  1178. X                while (slptr->arrow_pos & 1<<offset)
  1179. X                    offset++;
  1180. X                slptr->arrow_pos |= 1<<offset;
  1181. X                i = bi + narrows;
  1182. X                week_boxes[day].weekslots[i].arrow_pos |= 1<<offset;
  1183. X                draw_weekarrowhead(day, i, offset, TRUE);
  1184. X                while (--narrows > 0) {
  1185. X                    week_boxes[day].weekslots[--i].arrow_pos
  1186. X                      |= 1<<offset;
  1187. X                    draw_weekarrowshaft(day, i, offset, TRUE);
  1188. X                }
  1189. X            }
  1190. X        }
  1191. X        x = morebutton->pr_size.x;
  1192. X        y = morebutton->pr_size.y;
  1193. X        week_boxes[day].more = 1;
  1194. X        /* display more button at bottom of slot */
  1195. X        pw_write(main_pixwin, week_boxes[day].moreb_pos.left,
  1196. X            week_boxes[day].moreb_pos.top,
  1197. X            x, y, PIX_SRC, morebutton, 0, 0);
  1198. X    }
  1199. X}
  1200. X
  1201. END_OF_FILE
  1202. if test 10863 -ne `wc -c <'wpaint.c'`; then
  1203.     echo shar: \"'wpaint.c'\" unpacked with wrong size!
  1204. fi
  1205. # end of 'wpaint.c'
  1206. fi
  1207. echo shar: End of archive 13 \(of 23\).
  1208. cp /dev/null ark13isdone
  1209. MISSING=""
  1210. for I in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 ; do
  1211.     if test ! -f ark${I}isdone ; then
  1212.     MISSING="${MISSING} ${I}"
  1213.     fi
  1214. done
  1215. if test "${MISSING}" = "" ; then
  1216.     echo You have unpacked all 23 archives.
  1217.     rm -f ark[1-9]isdone ark[1-9][0-9]isdone
  1218. else
  1219.     echo You still need to unpack the following archives:
  1220.     echo "        " ${MISSING}
  1221. fi
  1222. ##  End of shell archive.
  1223. exit 0
  1224.  
  1225. exit 0 # Just in case...
  1226. -- 
  1227. Kent Landfield                   INTERNET: kent@sparky.IMD.Sterling.COM
  1228. Sterling Software, IMD           UUCP:     uunet!sparky!kent
  1229. Phone:    (402) 291-8300         FAX:      (402) 291-4362
  1230. Please send comp.sources.misc-related mail to kent@uunet.uu.net.
  1231.